﻿namespace MSSqlSchemaDoc.Core.DataStructures
{
    using System;

    /// <summary>
    /// Represents a primary or unique key constraint on a column.
    /// </summary>
    [Serializable()]
    public class ColumnKeyConstraint
    {
        /// <summary>
        /// Gets or sets a value indicating the type of constraint.
        /// PK = Primary Key; UQ = Unique Key
        /// </summary>
        public string KeyConstraintType { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether the constraint was named
        /// by the system or by the user.
        /// </summary>
        public bool IsSystemNamed { get; set; }
    }
}
